<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>EOS.IO: Table&lt; scope, code, table, Record, PrimaryType, SecondaryType &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="eos-logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">EOS.IO
   &#160;<span id="projectnumber">DAWN1.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_table-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Table&lt; scope, code, table, Record, PrimaryType, SecondaryType &gt; Class Template Reference<div class="ingroups"><a class="el" href="group__contractdev.html">How To Write Contracts</a> &raquo; <a class="el" href="group__database.html">Database API</a> &raquo; <a class="el" href="group__database_cpp.html">Database C++ API</a> &raquo; <a class="el" href="group__dual_index_table.html">Dual Index Table</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="db_8hpp_source.html">db.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_table_1_1_primary_index.html">PrimaryIndex</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The Primary Index.  <a href="struct_table_1_1_primary_index.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_table_1_1_secondary_index.html">SecondaryIndex</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">The Secondary Index.  <a href="struct_table_1_1_secondary_index.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ad9f8ffd200f4ec978d980c671d18f93f"><td class="memItemLeft" align="right" valign="top">typedef PrimaryType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_table.html#ad9f8ffd200f4ec978d980c671d18f93f">Primary</a></td></tr>
<tr class="separator:ad9f8ffd200f4ec978d980c671d18f93f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9482de8700db8cd12531397a43066a3"><td class="memItemLeft" align="right" valign="top">typedef SecondaryType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_table.html#ac9482de8700db8cd12531397a43066a3">Secondary</a></td></tr>
<tr class="separator:ac9482de8700db8cd12531397a43066a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a50bc5f57482c6a018e7eaf4e716e038c"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_table.html#a50bc5f57482c6a018e7eaf4e716e038c">get</a> (const PrimaryType &amp;p, Record &amp;r, <a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> s=scope)</td></tr>
<tr class="separator:a50bc5f57482c6a018e7eaf4e716e038c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a980d7e5d3be9cb202740bc2354ed0f03"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_table.html#a980d7e5d3be9cb202740bc2354ed0f03">store</a> (const Record &amp;r, <a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> s=scope)</td></tr>
<tr class="separator:a980d7e5d3be9cb202740bc2354ed0f03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0374ed1ad6a1c7fcb3012653fc6c1c7c"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_table.html#a0374ed1ad6a1c7fcb3012653fc6c1c7c">update</a> (const Record &amp;r, <a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> s=scope)</td></tr>
<tr class="separator:a0374ed1ad6a1c7fcb3012653fc6c1c7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bf44e6ccd8eb3cb1cae84b50afccc95"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_table.html#a5bf44e6ccd8eb3cb1cae84b50afccc95">remove</a> (const Record &amp;r, <a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a> s=scope)</td></tr>
<tr class="separator:a5bf44e6ccd8eb3cb1cae84b50afccc95"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="ad9f8ffd200f4ec978d980c671d18f93f"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint64_t scope, uint64_t code, uint64_t table, typename Record , typename PrimaryType , typename SecondaryType  = void&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef PrimaryType <a class="el" href="struct_table.html">Table</a>&lt; scope, code, table, Record, PrimaryType, SecondaryType &gt;::<a class="el" href="struct_table.html#ad9f8ffd200f4ec978d980c671d18f93f">Primary</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ac9482de8700db8cd12531397a43066a3"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint64_t scope, uint64_t code, uint64_t table, typename Record , typename PrimaryType , typename SecondaryType  = void&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef SecondaryType <a class="el" href="struct_table.html">Table</a>&lt; scope, code, table, Record, PrimaryType, SecondaryType &gt;::<a class="el" href="struct_table.html#ac9482de8700db8cd12531397a43066a3">Secondary</a></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a50bc5f57482c6a018e7eaf4e716e038c"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint64_t scope, uint64_t code, uint64_t table, typename Record , typename PrimaryType , typename SecondaryType  = void&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool <a class="el" href="struct_table.html">Table</a>&lt; scope, code, table, Record, PrimaryType, SecondaryType &gt;::get </td>
          <td>(</td>
          <td class="paramtype">const PrimaryType &amp;&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Record &amp;&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>&#160;</td>
          <td class="paramname"><em>s</em> = <code>scope</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>- reference to primary key to retrieve </td></tr>
    <tr><td class="paramname">r</td><td>- reference to a record to load the value to. </td></tr>
    <tr><td class="paramname">s</td><td>- account scope. default is current scope of the class</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if successful read. </dd></dl>

</div>
</div>
<a class="anchor" id="a5bf44e6ccd8eb3cb1cae84b50afccc95"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint64_t scope, uint64_t code, uint64_t table, typename Record , typename PrimaryType , typename SecondaryType  = void&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool <a class="el" href="struct_table.html">Table</a>&lt; scope, code, table, Record, PrimaryType, SecondaryType &gt;::remove </td>
          <td>(</td>
          <td class="paramtype">const Record &amp;&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>&#160;</td>
          <td class="paramname"><em>s</em> = <code>scope</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td>- reference to a record to remove. </td></tr>
    <tr><td class="paramname">s</td><td>- account scope. default is current scope of the class</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if successful remove. </dd></dl>

</div>
</div>
<a class="anchor" id="a980d7e5d3be9cb202740bc2354ed0f03"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint64_t scope, uint64_t code, uint64_t table, typename Record , typename PrimaryType , typename SecondaryType  = void&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool <a class="el" href="struct_table.html">Table</a>&lt; scope, code, table, Record, PrimaryType, SecondaryType &gt;::store </td>
          <td>(</td>
          <td class="paramtype">const Record &amp;&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>&#160;</td>
          <td class="paramname"><em>s</em> = <code>scope</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td>- reference to a record to store. </td></tr>
    <tr><td class="paramname">s</td><td>- account scope. default is current scope of the class</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if successful store. </dd></dl>

</div>
</div>
<a class="anchor" id="a0374ed1ad6a1c7fcb3012653fc6c1c7c"></a>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;uint64_t scope, uint64_t code, uint64_t table, typename Record , typename PrimaryType , typename SecondaryType  = void&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool <a class="el" href="struct_table.html">Table</a>&lt; scope, code, table, Record, PrimaryType, SecondaryType &gt;::update </td>
          <td>(</td>
          <td class="paramtype">const Record &amp;&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__types.html#gaaa5d1cd013383c889537491c3cfd9aad">uint64_t</a>&#160;</td>
          <td class="paramname"><em>s</em> = <code>scope</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">r</td><td>- reference to a record to update. </td></tr>
    <tr><td class="paramname">s</td><td>- account scope. default is current scope of the class</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if successful update. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>contracts/eoslib/<a class="el" href="db_8hpp_source.html">db.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
